﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Example01_CSharp
{
    class CRectangle
    {
        int x;
        int y;
        public void setvalues(int a, int b)
        {
            x = a;
            y = b;
        }
        public int area()
        {
            return (x * y);
        }
    }
    class Program1
    {
        static void Main(string[] args)
        {
            CRectangle rect=new CRectangle();
            rect.setvalues(3,4);
            Console.WriteLine("rect:{0}",rect.area());
        }
    }
}
